﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddProgress.aspx.vb" Inherits="WeightLossProject.AddProgress" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <h2 class=custom-header>Add Weight Loss Progress!</h2>
        <asp:Label ID="Label1" runat="server" CssClass="formlabel" 
            Text="Title of Progress"></asp:Label>
        <asp:TextBox ID="txtProgressTitle" runat="server" 
    CssClass="frmDisplayEdit"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvTxtProgressTitle" runat="server" 
        ControlToValidate="txtProgressTitle" CssClass="error" Display="Dynamic" 
        ErrorMessage="Progress Title Cannot be Blank!"></asp:RequiredFieldValidator>
    <p>
        <asp:Label ID="Label2" runat="server" CssClass="formlabel" Text="Description"></asp:Label>
        <asp:TextBox ID="txtDescription" runat="server" Height="171px" 
            TextMode="MultiLine" CssClass="frmDisplayEdit"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvTxtDescription" runat="server" 
            ControlToValidate="txtDescription" CssClass="error" Display="Dynamic" 
            ErrorMessage="Description Cannot be Blank!"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="rexVTxtDescription" runat="server" 
            ControlToValidate="txtDescription" CssClass="error" Display="Dynamic" 
            ErrorMessage="Description Should be  at least 100 Characters!" 
            ValidationExpression="^[\s\S]{100,}$"></asp:RegularExpressionValidator>
    </p>
    <p>
        <asp:Label ID="Label4" runat="server" CssClass="formlabel" 
            Text="Progress Picture"></asp:Label>
        <asp:FileUpload ID="fuProgressPicture" runat="server" 
            CssClass="frmDisplayEdit" />
    </p>
    <p>
        <asp:Label ID="Label3" runat="server" CssClass="formlabel" Text="Weight"></asp:Label>
        <asp:TextBox ID="txtWeight" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvTxtWeight" runat="server" 
            ControlToValidate="txtWeight" CssClass="error" Display="Dynamic" 
            ErrorMessage="Weight Cannot be Blank!"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Button ID="btnSubmitProgress" runat="server" 
            Text="Submit Weight Loss Progress" Height="34px" Width="435px" />
    </p>
    <p>
        &nbsp;</p>
</asp:Content>
